package com.krtech.wecard.module.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@ApiModel(value = "com-krtech-wecard-module-sys-entity-StatisticalMain")
@Data
@TableName(value = "sys_statistical_main")
public class StatisticalMain implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 创建人
     */
    @TableField(value = "CREATED_BY")
    @ApiModelProperty(value = "创建人")
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(value = "CREATED_TIME")
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    /**
     * 用户名
     */
    @TableField(value = "user_name")
    @ApiModelProperty(value = "用户名")
    private String userName;

    /**
     * 用户code
     */
    @TableField(value = "user_code")
    @ApiModelProperty(value = "用户code")
    private String userCode;

    /**
     * 身份识别
     */
    @TableField(value = "identity")
    @ApiModelProperty(value = "身份识别")
    private Integer identity;

    /**
     * 应用模块名
     */
    @TableField(value = "module_name")
    @ApiModelProperty(value = "应用模块名")
    private String moduleName;

    /**
     * 应用模code
     */
    @TableField(value = "module_code")
    @ApiModelProperty(value = "应用模code")
    private String moduleCode;

    /**
     * 访问时间
     */
    @TableField(value = "access_time")
    @ApiModelProperty(value = "访问时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date accessTime;

    /**
     * 次数
     */
    @TableField(value = "count")
    @ApiModelProperty(value = "次数")
    private Long count;

    /**
     * 软删除
     */
    @TableField(value = "del_flag")
    @ApiModelProperty(value = "软删除")
    private Integer delFlag;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CREATED_BY = "CREATED_BY";

    public static final String COL_CREATED_TIME = "CREATED_TIME";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_USER_NAME = "user_name";

    public static final String COL_USER_CODE = "user_code";

    public static final String COL_IDENTITY = "identity";

    public static final String COL_MODULE_NAME = "module_name";

    public static final String COL_ACCESS_TIME = "access_time";

    public static final String COL_COUNT = "count";

    public static final String COL_DEL_FLAG = "del_flag";
}